package cn.bgs.wjx.WjxMapper;

import cn.bgs.DealershipManagement.pojo.VehicleArea;
import cn.bgs.DealershipManagement.pojo.VehicleCar;
import cn.bgs.DealershipManagement.pojo.VehicleMiddle;
import cn.bgs.DealershipManagement.pojo.VehicleNumber;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CarMapper {
    List<VehicleArea> findAllArea();
    List<VehicleCar> findAllCar();

    void updateCarState(Integer vehicleCarId);

    void updateCarStateOld(Integer vehicleCarOldId);

    //根据userId查询我的车位
    List<VehicleMiddle> findAllMyCar(Integer userId);

    void addCarport(VehicleMiddle middle);

    void deleteCarportUser(Integer vehicleMiddleId);

    void updateCarportUser(VehicleMiddle middle);

    void updateCarportCar(VehicleMiddle middle);

    List<VehicleNumber> findAllNum();

    void updateVehicleState(Integer vehicleNumberId);

    void updateNumStateOld(Integer vehicleNumberOldId);

    void updateNumState(Integer vehicleNumberId);

    void deleteCar(Integer vehicleCarId);

    void deleteCarNumber(Integer vehicleNumberId);
}
